package com.xxyy.mylive.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

/**
 * Activity基类
 * Created by ado on 22:11 2016/10/18.
 */
public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView();
        initUI();
        initData();
        setListener();
    }

    /**
     * 填充布局
     */
    protected abstract void setContentView();

    /**
     * 实例化控件
     */
    protected abstract void initUI();

    /**
     * 设置监听器
     */
    protected abstract void setListener();

    /**
     * 初始化数据
     */
    protected abstract void initData();

}
